package com.lqq.componment;

import javax.swing.*;
import java.awt.*;

public class HBox {
    private static int width = 352;
    private static int height = 36;
    private static int x=173;
    private static int y=15;

    public static Box creatHBox(int interval,JLabel lab, Component component) {
        Box box=Box.createHorizontalBox();
        box.setBounds(HBox.x,HBox.y,HBox.width,HBox.height);
        box.add(Box.createHorizontalStrut(10));
        box.add(lab);
        box.add(Box.createHorizontalStrut(interval));
        box.add(component);
        return box;
    }

}
